<template>
	<view>
		<navigator url="/pages/index/index" v-if="showHome" open-type="switchTab" class="fixed-index"><image src="/static/icon_home.png" class="icon" mode="widthFix"></image></navigator>
	</view>
</template>

<script>
import { mapState, mapMutations, mapGetters } from 'vuex';

export default {
	data() {
		return {
		};
	},
     props: {
    	showHome:{
            type: Boolean,
            default: true
        },
    },
	methods: {
	},
	computed: {
        
	},
};
</script>

<style scoped lang="scss">
.fixed-index{
    position: fixed;
    right: 20upx;
    bottom: 200upx;
    z-index: 88;
    background: #68c058;
    box-shadow: 0 0 5px #68c058;
    width: 60upx;
    height: 60upx;
    padding: 10upx;
    border-radius: 5px;
    .icon{
        width: 40upx;
        height: 40upx;
        display: block;
    }
}

</style>
